#/bin/sh
#删除7天前的文件
time1=$(date "+%Y-%m-%d %H:%M:%S")
echo $time1
echo "deploy"|sudo -S find /data/fastdfs_data/fdfs_storage/data/ -mtime +6 -name "*.jpg" -exec rm -rfv {} \;
time2=$(date "+%Y-%m-%d %H:%M:%S")
echo $time2